package com.hsylient.ObserverPattern;


/**
 * 股票观察者
 *
 */
public class StockObserver extends MyObserver {


    public StockObserver(String name, MySubject subject) {
        super(name, subject);
    }

    @Override
    public void update() {
        System.out.println(subject.getAction() + "\n" + name + "关闭股票行情，继续工作");
    }
}
